package com.peas.platform.module.icims.budget.adjust.adapter.repository.po;

import java.util.*;
import java.math.*;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.peas.platform.common.core.annotation.Comment;
import com.peas.platform.framework.mybatisplus.po.BasePo;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.type.JdbcType;
import javax.validation.constraints.*;

// 年中新预算政府采购
@Data
@EqualsAndHashCode(callSuper = false)
@TableName(value = "`tbl_budget_new_purchase`")
public class BudgetNewPurchasePo extends BasePo {

    // 年中新预算表ID
    // 外键
    @Comment(value = "年中新预算表ID")
    @TableField(value = "`budget_new_id`", jdbcType = JdbcType.BIGINT)
    private Long budgetNewId;

    // 采购项目
    @Comment(value = "采购项目")
    @Size(max = 200, message = "采购项目不能超过200个字符")
    @TableField(value = "`purchase_item`", jdbcType = JdbcType.VARCHAR)
    private String purchaseItem;

    // 采购品目
    @Comment(value = "采购品目")
    @Size(max = 200, message = "采购品目不能超过200个字符")
    @TableField(value = "`purchase_kind`", jdbcType = JdbcType.VARCHAR)
    private String purchaseKind;

    // 采购需求概况
    @Comment(value = "采购需求概况")
    @Size(max = 200, message = "采购需求概况不能超过200个字符")
    @TableField(value = "`purchase_require`", jdbcType = JdbcType.VARCHAR)
    private String purchaseRequire;

    // 预计采购时间
    @Comment(value = "预计采购时间")
    @TableField(value = "`purchase_date`", jdbcType = JdbcType.TIMESTAMP)
    private Date purchaseDate;

    // 资金性质
    @Comment(value = "资金性质")
    @Size(max = 200, message = "资金性质不能超过200个字符")
    @TableField(value = "`purchase_attr`", jdbcType = JdbcType.VARCHAR)
    private String purchaseAttr;

    // 采购金额
    @Comment(value = "采购金额")
    @TableField(value = "`purchase_fund`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal purchaseFund;

    // 单价
    @Comment(value = "单价")
    @TableField(value = "`purchase_price`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal purchasePrice;

    // 采购数量
    @Comment(value = "采购数量")
    @TableField(value = "`purchase_num`", jdbcType = JdbcType.DECIMAL)
    private BigDecimal purchaseNum;

    // 计量单位
    @Comment(value = "计量单位")
    @Size(max = 20, message = "计量单位不能超过20个字符")
    @TableField(value = "`purchase_unit`", jdbcType = JdbcType.VARCHAR)
    private String purchaseUnit;

    // 专项资金名称
    @Comment(value = "专项资金名称")
    @Size(max = 200, message = "专项资金名称不能超过200个字符")
    @TableField(value = "`fund_name`", jdbcType = JdbcType.VARCHAR)
    private String fundName;

    // 资金来源
    @Comment(value = "资金来源")
    @Size(max = 200, message = "资金来源不能超过200个字符")
    @TableField(value = "`fund_source`", jdbcType = JdbcType.VARCHAR)
    private String fundSource;

}
